﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DeviceControlServer.ServerBase;
using DeviceCommon;

namespace DeviceControlServer.ClientCommands
{
    public class InitAll : ClientRequestPackCommand<RequestMsgPackge>
    {
        public IDevice Device = null;

        public string OutParams = "";

        public ClientRequestPackSession Session;

        public DeviceServer Server = null;

        public override void ExecuteCommand(ClientRequestPackSession session, RequestMsgPackge pack)
        {
            DeviceServer server = session.AppServer as DeviceServer;
            server.OnNewSessionRequestReceived(session, pack);
            server.InitDevices(pack.InParams);
        }
    }
}
